﻿using Microsoft.ApplicationBlocks.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DevExpressWebApplication1.Utils
{
    public class SupGroupUtils
    {
        public static Boolean Insert(string supGroupName, string Description)
        {
            int id = SqlHelper.ExecuteNonQuery(DataServices.ConnectString, "sp_Group_Insert", supGroupName, Description, 0);
            bool isSuccess = false;
            if (id > 0)
                isSuccess = true;
            return isSuccess;
        }

        public static Boolean Update(string supGroup_id, string supGroupName, string Description)
        {
            int id = SqlHelper.ExecuteNonQuery(DataServices.ConnectString, "sp_Group_Update", supGroup_id, supGroupName, Description);
            bool isSuccess = false;
            if (id > 0)
                isSuccess = true;
            return isSuccess;
        }
    }
}